home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Adobe Graphics & Publishing SDK 1996 December
/
Adobe Graphics & Publishing SDK 1996 December.iso
/
mac
/
PageMaker 6.5 SDK Mac
/
SourceCode
/
PageMakerClassLibrary
/
Commands
/
PPaintWindow.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-08-15
|
942b
|
36 lines
/*
*--- PPaintWindow.cpp ----------------------------------------------------
* Copyright (c) 1995-96 Adobe Systems Incorporated. All rights reserved.
* Created on Thu, Oct 12, 1995 @ 10:48 PM by Paul Ferguson.
*
* Description: For notes about this class, refer to the
* PCL documentation file PPaintWindow.html
*-------------------------------------------------------------------------
*/
#include "PPaintWindow.h"
#include "PCommand.h"
PPaintWindow::PPaintWindow(long theWindow)
{
PCommand command(pm_paintwindow, theWindow);
#ifdef MACINTOSH
if (theWindow) // you will have to provide this yourself.
{
GrafPtr savedPort;
GetPort(&savedPort);
SetPort((GrafPtr) theWindow);
BeginUpdate((GrafPtr) theWindow);
// Note: May need to put InvalRect() trap in here... Should check.
EndUpdate((GrafPtr) theWindow);
SetPort(savedPort);
}
#endif
}
// end of PPaintWindow.cpp